package cn.kgc.springboot;

import cn.kgc.springboot.controller.HelloController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Springboot02Application {

    public static void main(String[] args) {
        ApplicationContext ac = SpringApplication.run(Springboot02Application.class, args);
        HelloController bean = ac.getBean(HelloController.class);
        System.out.println("bean = " + bean);
    }

}
